package com.lg.concurrent.atomic;

import java.util.concurrent.atomic.AtomicIntegerArray;

public class AtomicIntegerArrayTest {
    public static void main(String[] args) {
        AtomicIntegerArray atomicIntegerArray = new AtomicIntegerArray( 2);
        atomicIntegerArray.set(1,1);
        System.out.println(atomicIntegerArray.get(1));
        System.out.println(atomicIntegerArray.get(0));

        System.out.println(atomicIntegerArray.getAndIncrement(1));
        System.out.println(atomicIntegerArray.get(1));
    }
}
